function map = vm_map(src_img, blk_w, blk_h)
% VM_MAP: create a map of masking for source image
% TuanND
% 04/03

%image 2 block
blk_list = vm_im2blk(src_img, blk_w, blk_h);

%classify each block
[nbr nbc] = size(blk_list);
blk_type = zeros(nbr, nbc);
for i = 1:nbr
    for j = 1:nbc
        blk = blk_list{i,j};
        blk_type(i,j) = vm_classify(blk);
    end
end
%build the map from block classification
map = vm_maprender(src_img, blk_list, blk_type);
end